<template>
	<div>
		<div v-for="item in beiyonglist" :key="item.id" style="padding: 14px;font-size:14px;">
			<el-checkbox v-model="item.status">	{{item.label}}</el-checkbox>
		</div>
		<div style="padding: 14px;">
			  <el-button type="primary" @click="querenlist">确认</el-button>
		</div>
	</div>
	
</template>

<script>
	export default{
		props: ['ziduanlist'],
		data(){
			return{
				beiyonglist:[],
				
			}
		},
		mounted() {
			console.log('',this.ziduanlist)
			this.$set(this,'beiyonglist',this.ziduanlist)
		},
		watch:{
			ziduanlist(newval,oldval){
				this.$set(this,'beiyonglist',this.ziduanlist)
			}
		},
		methods:{
			querenlist(){
				console.log('beiyong',this.beiyonglist)
				this.$emit('xuanzebiao',this.beiyonglist)
			}
		}
	}
</script>

<style>
</style>